//封装axios
import request from "../utils/request";

//轮播图数据
export function lunbo() {
  return request({
    url: "/banner?type=2",
    method: "GET",
  });
}


//歌单数据
export function songsheet() {
  return request({
    url: '/personalized?limit=10',
    method: "GET",
  })
}

//获取歌单详细数据
export function songsheets(id) {
  return request({
    url: `/playlist/detail?id=${id}`,
    method: "GET",
  })
}


//获取歌单歌曲数据
export function getsongs(data) {
  return request({
    url: `/playlist/track/all?id=${data.id}&limit=10&offset=${data.offset}`,
    method: "GET",
  })
}



//获取数据
export function getlyric(id) {
  return request({
    url: `/lyric?id=${id}`,
    method: "GET",
  })
}


//获取搜索关键词数据
export function getsearch(data) {
  return request({
    url: `/cloudsearch?keywords=${data}`,
    method: "GET",
  })
}



//获取搜索关键词数据
export function getlogin(data) {
  return request({
    url: `/login?email=${data.email}@163.com&password=${data.password}`,
    method: "GET",
  })
}



